Skip to content

cp: avoid resolving cwd for absolute recursive copies - #14336

Merged
sylvestre merged 1 commit into
uutils:mainfrom
varranvar:fix9105
Sep 4, 2026
Merged

cp: avoid resolving cwd for absolute recursive copies#14336
sylvestre merged 1 commit into
uutils:mainfrom
varranvar:fix9105

Conversation

@varranvar

Copy link
Copy Markdown
Contributor

Recursive copies unconditionally resolve cwd. This causes errors when the working directory has been removed, even if the source and destination paths were absolute. This fix is to stop resolving the cwd if the source path is absolute.

Fixes #9105.

Recursive copies unconditionally resolve cwd. This causes errors when
the working directory has been removed, even if the source and
destination paths were absolute. This fix is to stop resolving the
cwd if the source path is absolute.

Fixes uutils#9105.
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/retry (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/cp/link-heap is now being skipped but was previously passing.
Note: The gnu test tests/seq/seq-epipe is now being skipped but was previously passing.

@sylvestre
sylvestre merged commit d1dd5f9 into uutils:main Sep 4, 2026
103 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Compatibility BUG] cp commands fails if process is in deleted directory

2 participants